package com.smartao.base.acl;

public class Permission {
	public static final char RESERVED_ON = '~';
	public static final char RESERVED_OFF = '.';
	public static final String THIRTY_TWO_RESERVED_OFF = "................................";
	
	public static final Permission READ = new Permission(1 << 0, "READ");
	public static final Permission WRITE = new Permission(1 << 1, "WRITE");
	public static final Permission DELETE = new Permission(1 << 2, "DELETE");
	public static final Permission ADMIN = new Permission(1 << 3, "ADMIN");
	
	private int mask;
	private String name;
	
	public Permission(int mask, String name){
		this.mask = mask;
		this.name = name;
	}
	
	public String getPattern(){
		return "";
	}
	
	@Override
	public String toString(){
		return "";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMask(){
		return mask;
	}
	
	public void setMask(int mask) {
		this.mask = mask;
	}
	
}
